home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Interactive 7
/
PC World Interactive 7.iso
/
program
/
ctutord.EXE
/
72.C
< prev
next >
Wrap
C/C++ Source or Header
|
1990-09-17
|
492b
|
27 lines
/*
There may be additional include files required depending
upon the compile product you are using. Typical compilers
include Microsoft C by Microsoft or Turbo C by Boland Int'l.
*/
#include <stdio.h>
struct payroll {
char name[40];
long ssnumber;
long salary;
};
main()
{
int i,j;
struct payroll oneperson[5];
for(i=0; i<5 ; i++){
oneperson[i].ssnumber = 0;
oneperson[i].salary = 0;
for(j=0; j<40 ; j++){
oneperson[i].name[j] = '\0';
}
}
}